package com.cyz.user.controller;

import com.cyz.user.userService.OtcService;
import com.cyz.common.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "用户端外部合作课相关接口")
@RestController
@RequestMapping("/otc")
public class OtcController {

    @Autowired
    private OtcService otcService;

    @GetMapping("/queryOtcs")
    @ApiOperation(value = "查询外部合作课")
    public R queryOtcs(){
        return otcService.queryOtc();
    }

}
